package com.hera.process.config.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.hera.base.dao.repository.BaseRepository;
import com.hera.process.workflow.domain.ProcessGroupUser;
import com.hera.process.workflow.domain.ProcessGroupUserPK;

public interface ProcessGroupUserDao extends BaseRepository<ProcessGroupUser, ProcessGroupUserPK> {

	
	@Modifying
	@Transactional
	@Query("delete from ProcessGroupUser o where o.processGroup.idProcessGroup = ?")
	void deleteByProcessGroup(Long idProcessGroup);

}
